﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="DutyScheduleUpdForm.aspx.cs" Inherits="App_Master_DutyScheduleUpdForm"
    Title="工作排班表登记" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script language="javascript" type="text/javascript">
        function selectButtonClick(commond,itemId,day,empId){                              
            document.getElementById('<%=hidItemId.ClientID%>').value = itemId; 
            document.getElementById('<%=hidCommond.ClientID%>').value = commond; 
            document.getElementById('<%=hidDay.ClientID%>').value = day;
            document.getElementById('<%=hidEmpId.ClientID%>').value = empId;                        
        }
        
        function openPersonSrh(index){
            var url  = "../Commons/EmployeeSearchForm.aspx";	       
	        prm = "?CONTROL_ID=" + "<%= txtEmpId.ClientID %>";
	        prm += "&CONTROL_NAME=" + "<%= txtEmpName.ClientID %>";	        
	        url += prm;	        
	        var win = window.open(url,'DutyScheduleUpdForm','scrollbars,resizable,height=460,width=500');
	        win.focus();	        	        
        }   
    </script>

    <table border="0" class="table_border_line">
        <tr>
            <td align="left">

                <script language="javascript" type="text/javascript">
                    (new TitleBar('DutyTableBar', '排班计划表')).showBar();
                </script>

            </td>
        </tr>
    </table>
    <table class="table_border_line">
        <tr>
            <td style="width: 16px; background: ffffff" class="">&nbsp; </td>
            <td class="" style="width: 128px; height: 26px; background: ffffff"><span style="color: #ff7300">
                *</span>月度排班表名称： </td>
            <td style="background: ffffff">&nbsp;<asp:TextBox ID="txtScheduleName" runat="server"
                Width="232px" />
            </td>
        </tr>
        <tr>
            <td style="width: 16px; background: ffffff" class="">&nbsp; </td>
            <td class="" style="width: 128px; height: 26px; background: ffffff"><span style="color: #ff7300">
                *</span>日期（年/月）：&nbsp;</td>
            <td style="background: ffffff">&nbsp;<asp:TextBox ID="txtScheduleYear" runat="server"
                MaxLength="4" Width="46" />
                年 &nbsp; &nbsp;
                <asp:TextBox ID="txtScheduleMonth" runat="server" MaxLength="2" Width="46" />
                月&nbsp; &nbsp;&nbsp; &nbsp;<asp:Button ID="btnShow" Text="更新名称" runat="server" Width="76px"
                    OnClick="btnShow_Click" />
                <asp:Button ID="btnDelDs" Text="删除排班" runat="server" Width="76px"
                    OnClick="btnDelDs_Click" OnClientClick="javascript:return window.confirm('确定要删除当前排班计划吗？');" /></td>
        </tr>
    </table>
    <p>&nbsp;</p>
    <table border="0" width="100%" runat="server" id="tableItems">
        <tr>
            <td>
                <table border="0" class="table_border_line">
                    <tr>
                        <td align="left">

                            <script language="javascript" type="text/javascript">
                    (new TitleBar('DutyTableBar', '排班计划项目')).showBar();
                            </script>

                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Table ID="TblSchedule1" runat="server" CssClass="GridView_table">                    
                </asp:Table>
            </td>
        </tr>
        <tr>
            <td>
                <hr style="border-top: 1px solid #F26322; border-style: solid" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Table ID="TblSchedule2" runat="server" CssClass="GridView_table">                    
                </asp:Table>
            </td>
        </tr>
        <tr>
            <td>
                <p>&nbsp;</p>
            </td>
        </tr>
        <tr>
            <td>
                <table border="0" class="table_border_line">
                    <tr>
                        <td align="left">

                            <script language="javascript" type="text/javascript">
                                (new TitleBar('DutyTableBar', '排班计划登记')).showBar();
                            </script>

                        </td>
                    </tr>
                </table>
                <asp:HiddenField ID="hidItemId" runat="server" />
                <asp:HiddenField ID="hidCommond" runat="server" /><asp:HiddenField ID="hidDay" runat="server" /><asp:HiddenField ID="hidEmpId" runat="server" />
            </td>
        </tr>
        <tr>
            <td>
                <table class="table_border_line" style="background: ffffff">
                    <tr>
                        <td style="width: 16px" class="">&nbsp; <span style="color: #ff7300">*</span></td>
                        <td class="" style="width: 128px; height: 26px">员工编号： </td>
                        <td class="">&nbsp;<asp:TextBox ID="txtEmpId" runat="server" Width="42px" />
                            <asp:TextBox ID="txtEmpName" runat="server" Width="73px" TabIndex="-1" />
                            <asp:Label ID="Label1" runat="server" Visible="False"></asp:Label>
                            <a href="#" onclick="javascript:openPersonSrh();">&nbsp;
                                <img id="imgSearch" runat="server" src="../../images/search.jpg" border="0" />
                            </a>
                            </td>
                    </tr>
                    <tr>
                        <td style="width: 16px" class="">&nbsp; <span style="color: #ff7300">*</span></td>
                        <td class="" style="width: 128px; height: 26px">日期： </td>
                        <td class="">&nbsp;<asp:TextBox ID="txtScheduleDay" runat="server" MaxLength="2"
                            Width="100px" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 16px" class="">&nbsp; </td>
                        <td class="" style="width: 128px; height: 26px">排班类型： </td>
                        <td class="">&nbsp;<asp:DropDownList ID="lstType" runat="server" Width="120" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 16px" class="">&nbsp; </td>
                        <td class="" style="width: 128px; height: 26px">备注： </td>
                        <td class="">&nbsp;<asp:TextBox ID="txtMemo" runat="server" TextMode="MultiLine"
                            Rows="5" Width="99%" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table width="100%">
                    <tr>
                        <td align="center"></td>
                    </tr>
                    <tr>
                        <td align="center" style="">
                            <asp:Button ID="btnOk" runat="server" Text=" 登 记 " Width="89px" CssClass="button"
                                OnClick="btnOk_Click" OnClientClick="javascript:return window.confirm('确定要进行登记吗？');" />
                            &nbsp;<asp:Button ID="btnCancel" runat="server" Text=" 取 消 " Width="89px" CssClass="button"
                                OnClick="btnCancel_Click" />
                            &nbsp;<asp:Button ID="btnDel" runat="server" Text=" 删 除 " Width="89px" CssClass="button"
                                OnClick="btnDel_Click" OnClientClick="javascript:return window.confirm('确定要删除当前排班项目吗？');" />
                            &nbsp;<asp:Button ID="btnBack" runat="server" Text=" 返 回 " OnClick="btnBack_Click" Width="89px" CssClass="button"/>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
